package com.zrrd.yt.user.client;

import com.zrrd.yt.model.user.UserAddress;
import com.zrrd.yt.user.client.impl.UserFeignClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author HongyueYang
 */
@FeignClient(value = "service-user",fallback = UserFeignClientImpl.class)
public interface UserFeignClient {
    //获取用户地址
    @GetMapping("/api/user/inner/findUserAddressByUserId/{userId}")
    public List<UserAddress> findUserAddressByUserId(@PathVariable("userId") String userId);

}
